package com.marchsoft.group.manager.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.marchsoft.group.manager.system.entity.Role;
import com.marchsoft.group.manager.system.mapper.RoleMapper;
import com.marchsoft.group.manager.system.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Autowired
    RoleMapper roleMapper;


    @Override
    public String getAuthority(Long username) {
        String authority = roleMapper.getAuthority(username);
        System.out.println(authority);
        return authority;
    }
}
